<template>
    <div>
        <van-nav-bar title="购物车" />
        <van-card price="2.00" title="商品标题" thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg">
            <template #thumb>
                <van-checkbox v-model="checked"></van-checkbox>
            </template>
            <template #num>
                <van-stepper v-model="value" theme="round" button-size="22" disable-input />
            </template>
        </van-card>
        <van-swipe-cell>
            <template #right>
                <van-button square text="删除" type="danger" class="delete-button" />
            </template>
        </van-swipe-cell>
        <van-submit-bar :price="0" button-text="提交订单" @submit="onSubmit">
            <van-checkbox v-model="checked">全选</van-checkbox>
        </van-submit-bar>
    </div>
</template>

<script setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
let router=useRouter()
let onSubmit=()=>{
    router.push('/dd')
}
</script>

<style lang="scss" scoped></style>